package com.woniuxy.cloud.userassembly.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.cloud.entity.TUser;
import com.woniuxy.cloud.entity.TUserCoupon;
import com.woniuxy.cloud.form.AddCouponForm;
import com.woniuxy.cloud.form.RegisterForm;
import io.swagger.models.auth.In;

import java.util.List;


/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2021-09-27
 */
public interface ITUserService extends IService<TUser> {

    TUser getUserByUserId(Integer userId);

    Integer updateUserPassWord(Integer userId,String code,String passWord);

    TUser getUserByUserName(String userName);

    TUser getUserByUserPhone(String userPhone);

    TUser register(RegisterForm registerForm);

    Integer updateDefaultUserAddressByUserId(Integer userId,Integer userAddressId);

    Integer updatePayPassword(Integer userId,String newPassword);

    Integer updateUserScoreById(Integer userId,Integer userScore);

    Integer updateUserNickName(Integer userId,String newName);

    Integer updateUserImage(Integer userId,String img);

    Integer updateUserbalanceByUserId(Integer userId,Double balance);

    Integer updateUserPayFeeByUserId(Integer userId,Double balance);



}
